package com.tarena.lbs.user.dao.repository;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.github.pagehelper.PageInfo;
import com.tarena.lbs.user.pojo.param.AdminUpdateStatusParam;
import com.tarena.lbs.user.pojo.po.AdminPO;
import com.tarena.lbs.user.pojo.query.AdminQuery;

public interface AdminRepository {

    AdminPO getAdminByPhone(String phone);

    AdminPO getAdminById(Integer id);

    PageInfo<AdminPO> pagesList(AdminQuery query);
    
    long countUserById(Integer id);

    void reset(Integer id);

    long countUserByPhone(QueryWrapper<AdminPO> queryWrapper);

    void save(AdminPO poParam);

    void deleteById(Integer id);

    void update(AdminPO poParam);

    void updateStatusById(AdminUpdateStatusParam query);
}
